package factory;

public class ShapeFactory {
    public static Shape getShape(String shape){
        if(shape.equalsIgnoreCase("RECTANGLE")){
            return new Rectangle();
        }
        else if(shape.equalsIgnoreCase("CIRCLE")){
            return new Circle();
        }
        return null;
    }
}
